﻿using System;
using System.Data;
using System.Data.SqlClient;
  public class SQLCommandClass 
    {
      protected SqlCommand cmd() {
          SqlCommand c = new SqlCommand();
          try
          {
              c.CommandType = CommandType.StoredProcedure;
              c.CommandTimeout = 30;
              c.Connection = new Sql().OpneSqlConcetion();
              return c;
          }
          catch { throw new ArgumentException("Error 300"); }
      }
      
    }

